package com.netsuite.helper;

import com.netsuite.logger.LoggerImp;
import com.netsuite.webservices.platform.core_2014_1.StatusDetail;

public class ErrorSOAPHelper {

	 public static void displayError(String className, StatusDetail [] statusDetails) throws ErrorHelper{
	    	for (StatusDetail stat : statusDetails){
	    		LoggerImp.errorLog(className, stat.getType() + "\n"+ stat.getCode() +"\n" +  stat.getMessage());
				throw new ErrorHelper(className, stat.getType() + "\n"+ stat.getCode() +"\n" +  stat.getMessage());
			}
	 }	
}
